package com.yami.shop.bean.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用于记录用户参与的话题及其相关的动态
 * </p>
 *
 * @author EXiaoKe
 * @since 2025-04-14
 */
@Getter
@Setter
@ToString
@TableName("tz_topic_participations")
public class TopicParticipation implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 参与记录的唯一标识符
     */
    @TableId(value = "participation_id", type = IdType.AUTO)
    private Long participationId;

    /**
     * 关联的话题ID
     */
    private Long topicId;

    /**
     * 参与的话题下的动态ID
     */
    private Long postId;

    /**
     * 参与时间
     */
    private LocalDateTime createdAt;
}
